package com.company.common.enums;

import com.company.common.exception.BaseErrorInfo;

/**
 * Description: company
 * Created by hekai on 2021/3/18 9:45
 */
public enum ExecuteErrorEnum implements BaseErrorInfo {
    EXECUTE_ERROR_ENUM("601","数据执行失败"),
    EXECUTE_NULL_ENUM("602","必填参数可能为空导致错误！"),
    EXECUTE_NOTBELONGWITHYOU_ENUM("603","数据不属于当前用户！"),
    EXECUTE_NOTSUPPOSEUPDATETYPE_ENUM("604","不支持修改的类型，请检查参数是不是规范的！"),
    EXECUTE_NOEXITINDATABASE_ENUM("605","关联数据在数据库中不存在！"),
    EXECUTE_NOFOUNDINDATABASE_ENUM("606","执行没有错误，数据库中没有查找到合适的值！"),
    EXECUTE_CHONGFU_ENUM("607","重复项已存在数据库中!"),
    EXECUTE_HOMEWORKITEMTYPEERROR_ENUM("608","作业包作业内容只有素材、板书题和习题！检测到未知类型"),
    EXECUTE_HOMEWORKITEMIDNULLERROR_ENUM("609","作业包作业内容类型不为空，作业内容ID为空！"),
    EXECUTE_HOMEWORKPACKTYPENUMERROR_ENUM("610","作业包类型只有基本包和扩展！检测到超过数量"),
    EXECUTE_HOMEWORKPACKTYPEERROR_ENUM("611","作业包类型只有基本包和扩展！检测到类型错误"),
    EXECUTE_SENDHOMEWORKPACKINGROUPBUTNOCLASSIDERROR_ENUM("612","发送作业包时选择小组发送但是没有传递班级id或者传递了空数据包！"),
    EXECUTE_SENDHOMEWORKPACKINSTUDENTBUTNOCLASSIDERROR_ENUM("613","发送作业包时选择学生发送但是没有传递班级id或者传递了空数据包！"),
    EXECUTE_SENDHOMEWORKPACKSHOWANSWERNULLERROR_ENUM("614","选择自定义显示答案时间但是没有传显示答案时间参数！"),
    EXECUTE_MATERIALBOOKCHAPTERNULLERROR_ENUM("615","素材关联的章节不存在或者不是子节点章节！"),
    EXECUTE_CLASSINDEXNOSTUDENTERROR_ENUM("616","班级下面不存在学生！"),
    EXECUTE_NUMBERFORMATERROR_ENUM("617","树节点距离数字转换失败！"),
    EXECUTE_PARENTNOTEXITS_ENUM("618","树节点父节点不在数据库中！"),
    EXECUTE_HOMEWORKPACKDONTBELONGHEERROR_ENUM("619","作业包不属于当前用户或数据库中不存在该作业包！"),
    EXECUTE_WRONGEXERCISENOTEXITERROR_ENUM("620","错题不存在!"),
    EXECUTE_WRONGEXERCISENOFOUNTUPDATEERROR_ENUM("621","错题修改方法没有找到差异项!请至少修改一列"),
    EXECUTE_PARENTNOTBINDKIDSERROR_ENUM("622","家长不存在绑定的孩子!"),
    EXECUTE_CFGCHAPTERFIDNOTEXITERROR_ENUM("623","配置章节父ID不存在!"),
    EXECUTE_CFGCHAPTERNAMEHASEXITERROR_ENUM("623","配置章节父ID下已存在对应的子章节，请检查是否重复"),
    EXECUTE_LESSONCOURSEWAREALREADYEXITERROR_ENUM("624","该讲义包该老师已设置该班级当天使用，请换个班级或者换个时间试试！"),
    EXECUTE_LESSONCONNECTIONERROR_ENUM("625","该班级已经有老师在上课了"), // 该班级已经建立了未中断的连接了，请联系管理员！
    EXECUTE_TEACHERCONNECTIONERROR_ENUM("625","该老师已经建立了未中断的连接了，请联系管理员！"),
    EXECUTE_LESSONNOTCONNECTIONERROR_ENUM("626","该班级暂未有老师上课喔！"),
    EXECUTE_CLASSBINDSSTUDENTNOTEXITERROR_ENUM("627","该班级下面还未有绑定学生！"),
    EXECUTE_CLASSEXITERROR_ENUM("628","班级下课失败！"),
    EXECUTE_TEACHERIDCARDERROR_ENUM("629","尝试删除不属于你的班级链接错误！"),
    EXECUTE_CLASSBANDSERROR_ENUM("630","班级与用户绑定关系不存在！"),
    EXECUTE_MATERIALTYPEZBZCERROR_ENUM("631","暂不支持的素材类型！"),
    EXECUTE_MARKEXITSERROR_ENUM("632","已经存在这个收藏了，请勿重复提交！"),
    EXECUTE_PARSELESSONPACKERROR_ENUM("633","解析课堂请求包时出错！"),
    EXECUTE_LUARESPONPACKERROR_ENUM("634","解析课堂请求包时出错！"),
    EXECUTE_SENDHWNOSTUDENTERROR_ENUM("635","发送作业包时选择的班级或者小组下面没有学生！"),
    EXECUTE_CHAPTERANDKNOWLEDGEMUSTNULLERROR_ENUM("636","章节和知识点二选一!"),
    EXECUTE_CLASSDOESNOTEXIST_ENUM("637","课堂已关闭"),
    EXECUTE_SEATNOT_ENUM("638","座位上有人了!"),
    EXECUTE_MAKESUREHAVINGLESSONBEFORESELECTCOURSEWAREMATERIALERROR_ENUM("639","请确认在查询上课讲义包素材之前，是否具有课堂对象！！！"),
    EXECUTE_MAKESUREHAVINGLESSONBEFORESELECTCOURSEWAREEXERCISEERROR_ENUM("639","请确认在查询上课讲义包习题之前，是否具有课堂对象！！！"),
    EXECUTE_RUSHANSWERKEYDOESNOTEXIST_ENUM("640","抢答Key与发布key不一致"),
    EXECUTE_RUSHANSWERKEYDOESNOTEXISTSTATUS_ENUM("641","抢答未开始"),
    EXECUTE_RUSHANSWERKEYDOESNOTEXISTSTATUSNOT_ENUM("642","没有抢到"),
    EXECUTE_ADDMATERIALCHAPTERBUTNOBOOKIDERROR_ENUM("643","给素材新分配章节ID但是没有传书本ID！"),
    EXECUTE_CREATELESSONACTIONFAILDERROR_ENUM("644","创建课堂时转发消息失败！请重试"),
    EXECUTE_DEADLINELESSONACTIONFAILDERROR_ENUM("645","删除课堂时转发消息失败！请重试"),
    EXECUTE_USERNOTAPPANDWINERROR_ENUM("646","只支持win或者app端进行消息转发！"),
    EXECUTE_NOCANANSWERRANDOMERROR_ENUM("647","没有可以随机答题的学生了！"),
    EXECUTE_DUPLICATEKEYEXCEPTIONERROR_ENUM("648","主键重复，请勿重复点击"),
    EXECUTE_SENDSUBMITSAVENOANSWERIDORANSWERCONTENT("649","提交数据时答案ID或者答案内容为空！"),
    EXECUTE_LESSONIDNOTMATCHINREDISERROR_ENUM("650","传输的lessonId与班级正在上课的lessonId不一致！"),
    EXECUTE_DONTROLLBACKANDRECOVARYAFTERCLEARERROR_ENUM("651","清除之后调用恢复和回退方法！或者已经回退到超出边界值状态！"),
    EXECUTE_ROCOVARYOVERFLOWERROR_ENUM("652","恢复超出边界值！"),
    EXECUTE_CFGCHAPTERNAMEDONTMATCHERROR_ENUM("653","配置章节的名称不符合规则！应该按顺序输入(学段 学科 版本 制度 年级 分册)"),
    EXECUTE_CFGCHAPTERNAMEHIGHDONTMATCHERROR_ENUM("653","配置章节的名称不符合规则！应该按顺序输入(学段 学科 版本 分册)"),
    EXECUTE_REGISTERNOSHCOOLIDERROR_ENUM("654","注册时没输入学校！"),
    EXECUTE_DOUBLESUBJECTFIRSTERROR_ENUM("655","选择了两个主教科目！"),
    EXECUTE_SEATMARKERROR_ENUM("656","座位格式不正确！"),
    EXECUTE_CREATELESSONREDISERROR_ENUM("657","创建课堂时redis或者消息转发操作异常！"),
    EXECUTE_PASSWORDERROR_ENUM("658","密码必须由字母 数字 特殊符号组成 且要大于8位"),


    //ID生成器异常信息
    IDEXECUTE_NOMATCHCLASSERROR_ENUM("2221","不符合的Class对象！该对象类必须注解TableName"),
    IDEXECUTE_TABLENAMENOMATCHERROR_ENUM("2222","注解值不匹配！TableName的注解值必须是tb_开头，并且_后有【a-z】值"),
    IDEXECUTE_SERVICEINSTACEIDNOMATCHERROR_ENUM("2223","服务器ID不符合规则,至少是两位字符！"),
    ;

    private String errorCode;
    private String errorMsg;

    ExecuteErrorEnum(String errorCode,String errorMsg){
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    @Override
    public String getErrorCode() {
        return errorCode;
    }

    @Override
    public String getErrorMsg() {
        return errorMsg;
    }
}
